package fr.inpl_nancy.mines.andromines.bluetooth;

/**
 * Interface that has to implement the upper layer to communicate with the bluetooth interface
 * The upper layer also has to register with Bluetooth.setUpperLayer() function
 * 
 * @author Olivier Genest
 * @version 0.1
 */
public interface BluetoothInterface {
	
	/**
	 * Callback called when a message has been received
	 * 
	 * @param msg Received message
	 */
	public void messageReceived(String msg);
	
	/**
	 * Callback called when a neighbour has been detected
	 * 
	 * @param addr Neighbour address
	 */
	public void neighbourDetected(int addr);

}
